package cn.odore.org.mapper;

import cn.odore.basic.mapper.BasicMapper;
import cn.odore.org.domain.Department;

import java.util.List;

/**
 * 部门mapper层
 */
public interface DepartmentMapper extends BasicMapper<Department> {
    // 查询一条数据
    Department loadById(Long id );

    // 批量删除
    void patchDel(List<Long> ids);

    // 获取部门树
    List<Department> getDeptTree();
}
